package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 *         date 2018/8/3 上午9:11
 */
public class CupListResult implements Parcelable {

    /**
     * id : 578
     * title : 第26届一年级数学大王邀请赛（2017年）
     * introduce : 2017年第26届一年级数学大王邀请赛答案【1】9【2】11-4=7【3】99-10=89【4】小强【5】21【6】略（“回”字形）【7】20【8】5【9】55【10】8【11】24【12】300【13】4【14】4【15】7【16】2【17】0【18】3；1【19】20【20】25；55
     * grade : 一年级
     * type_id : 4
     * cup_name : 数学大王
     * video : [{"id":4238,"video_title":"1","video_describe":"<p>【1】下面一共有（ &nbsp;）个小方块<\/p><p><img src=\"http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef278580498.png\" title=\"blob.png\" alt=\"blob.png\"/><\/p>","video_url":"sxc_152562258591.mp4","video_pic":"sxc_152562258591.jpg","is_learn":1},{"id":4239,"video_title":"2","video_describe":"<p>移动一根火柴棒使算式结果正确，按要求修改后，正确的算式是（ &nbsp; &nbsp; ）<\/p><p><img src=\"http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef27b47b56d.png\" title=\"blob.png\" alt=\"blob.png\"/><\/p>","video_url":"sxc_152562269984.mp4","video_pic":"sxc_152562269984.jpg","is_learn":1},{"id":4240,"video_title":"3","video_describe":"<p>最大的两位数比最小的两位数大（ &nbsp; ）<\/p>","video_url":"sxc_152562272121.mp4","video_pic":"sxc_152562272121.jpg","is_learn":1},{"id":4241,"video_title":"4","video_describe":"<p>体育课上百米赛跑，小明用了15秒，小强用了14秒，小军用了16秒，这三人中第一名的是（ &nbsp; ）<\/p>","video_url":"sxc_152562277626.mp4","video_pic":"sxc_152562277626.jpg","is_learn":1},{"id":4242,"video_title":"5","video_describe":"<p>一辆公共汽车，到第一站下车5人，上车4人，车上还剩20人，那么公共汽车上原有（ &nbsp; ）人<\/p>","video_url":"sxc_152562280537.mp4","video_pic":"sxc_152562280537.jpg","is_learn":1},{"id":4243,"video_title":"6","video_describe":"<p>按照规律，在空格处画出图。<\/p><p><img src=\"http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef28d5c96db.png\" title=\"blob.png\" alt=\"blob.png\"/><\/p><p><br/><\/p>","video_url":"sxc_152562297294.mp4","video_pic":"sxc_152562297294.jpg","is_learn":1},{"id":4244,"video_title":"7","video_describe":"<p>小明比小军大3岁，小强比小军小2岁，小明比小强大（ &nbsp; ）岁<\/p>","video_url":"sxc_152562304093.mp4","video_pic":"sxc_152562304093.jpg","is_learn":1},{"id":4245,"video_title":"8","video_describe":"<p>一条长26厘米的绳子，先从一头减去4厘米，又从另一头减去16厘米，这条绳子一共短了（ &nbsp; ）厘米<\/p>","video_url":"sxc_152562305936.mp4","video_pic":"sxc_152562305936.jpg","is_learn":1},{"id":4246,"video_title":"9","video_describe":"<p>面包师傅上午做了25个面包，比下午少做了5个面包，那么他一天做了（ &nbsp; ）个面包<\/p>","video_url":"sxc_152562310936.mp4","video_pic":"sxc_152562310936.jpg","is_learn":1},{"id":4247,"video_title":"10","video_describe":"<p>数一数，图中有（ &nbsp; ）个正方形<\/p><p><img src=\"http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef29870f057.png\" title=\"blob.png\" alt=\"blob.png\"/><\/p><p><\/p>","video_url":"sxc_152562313837.mp4","video_pic":"sxc_152562313837.jpg","is_learn":1},{"id":4248,"video_title":"11","video_describe":"<p>小亮说：\u201c3年前，妈妈比我大24岁。\u201d妈妈说：\u201c3年后，你比妈妈小（ &nbsp; &nbsp;）岁。\u201d<\/p>","video_url":"sxc_152562319281.mp4","video_pic":"sxc_152562319281.jpg","is_learn":1},{"id":4249,"video_title":"12","video_describe":"<p>猎人去打猎，他的家到森林有200米路，他走出50米时，发现没有带猎枪，又回家去取，然后他继续出发，猎人到达森林共走了（ &nbsp; ）米的路<\/p><p><br/><\/p>","video_url":"sxc_152562321162.mp4","video_pic":"sxc_152562321162.jpg","is_learn":1},{"id":4250,"video_title":"13","video_describe":"<p>一块红砖的重量等于1千克加上半块红砖的重量，每块红砖一样重，两块红砖（ &nbsp; ）千克重。<\/p>","video_url":"sxc_152562324190.mp4","video_pic":"sxc_152562324190.jpg","is_learn":1},{"id":4251,"video_title":"14","video_describe":"<p>树上飞走了5只鸟，现在还剩4只，树上又飞走了1只鸟，树上还剩3只鸟，第二次比第一次少飞走（ &nbsp; &nbsp;）只鸟<\/p>","video_url":"sxc_152562329740.mp4","video_pic":"sxc_152562329740.jpg","is_learn":1},{"id":4252,"video_title":"15","video_describe":"<p>下图的\u201c小鱼\u201d中有（ &nbsp; ）个三角形<\/p><p><img src=\"http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef2a4e2cd00.png\" title=\"blob.png\" alt=\"blob.png\"/><\/p>","video_url":"sxc_152562332071.mp4","video_pic":"sxc_152562332071.jpg","is_learn":1},{"id":4253,"video_title":"16","video_describe":"<p>小明比小军多10根小棒，小明给小军4根后，小明比小军多（ &nbsp; ）根。<\/p>","video_url":"sxc_152562339478.mp4","video_pic":"sxc_152562339478.jpg","is_learn":1},{"id":4254,"video_title":"17","video_describe":"<p>小华有8个橘子，送给爸爸4个，妈妈又给他4个，小华的橘子少了（ &nbsp; &nbsp;）个。<\/p>","video_url":"sxc_152562341676.mp4","video_pic":"sxc_152562341676.jpg","is_learn":1},{"id":4255,"video_title":"18","video_describe":"<p>兔妈妈要把10个胡萝卜分给4个子女，每个儿子分3个萝卜，每个女儿分1个萝卜，那么有（ &nbsp; ）个儿子，有（ &nbsp; ）个女儿。<\/p>","video_url":"sxc_152562344169.mp4","video_pic":"sxc_152562344169.jpg","is_learn":1},{"id":4256,"video_title":"19","video_describe":"<p>一箱苹果有100个，数出10个苹果需要10秒钟，要想得到80个苹果，最快需要数（ &nbsp;）秒钟<\/p>","video_url":"sxc_152562347535.mp4","video_pic":"sxc_152562347535.jpg","is_learn":1},{"id":4257,"video_title":"20","video_describe":"<p>小军、小亮、小华三个人，每两个人一起轮流打乒乓球，小军打了40分钟，小亮打了15分钟，那么小华最少打了（ &nbsp;）分钟，最多打了（ &nbsp;）分钟。<\/p>","video_url":"sxc_152562351317.mp4","video_pic":"sxc_152562351317.jpg","is_learn":1}]
     * video_describe : 【1】下面一共有（ &nbsp;）个小方块<img src="http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef278580498.png" title="blob.png" alt="blob.png"/>
     * ucloud_video_url : http://video.niuwaketang.com/sxc_152562258591.mp4?k=5ee2c522a8d273c2&t=1539759291
     * ucloud_video_pic : http://video.niuwaketang.com/sxc_152562258591.jpg?k=5ee2c522a8d273c2&t=1539759291
     * is_learn : 1
     * is_good : 1
     * video_message : [{"members_id":3176,"content":"老师，杯赛在哪做？","posttime":1533216305,"answer_posttime":1533262778,"answer_content":"在【在线考试】那边","status":2,"username":"美若黎明","avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"},{"members_id":3087,"content":"老师我做完一年级的考试了但我只做了一片杯赛题我现在可以做二年级的题了吗","posttime":1532249558,"answer_posttime":1532275804,"answer_content":"可以呀，有兴趣就可以做做试试，不懂的知识点可以在课程里面学习，老师讲的不好或者不对的地方也可以提出来","status":2,"username":"煊煊","avatar":"http://api.niuwaketang.com/avatar/avatar.png","answer_teacher_nicename":"牛娃老师","answer_teacher_avatar":"http://api.niuwaketang.com/avatar/teacher_avatar.png"}]
     * study_num : 509
     * course_num : 20
     * join_my_course : 1
     * examine_list : [{"id":295,"ex_title":"2017年第26届一年级数学大王邀请赛真题"}]
     */

    private int id;
    private String title;
    private String introduce;
    private String grade;
    private int type_id;
    private String cup_name;
    private String video_describe;
    private String ucloud_video_url;
    private String ucloud_video_pic;
    private int is_learn;
    private int is_good;
    private int study_num;
    private int course_num;
    private int join_my_course;
    private List<VideoBean> video;
    private List<VideoMessageBean> video_message;
    private List<ExamineListBean> examine_list;

    protected CupListResult(Parcel in) {
        id = in.readInt();
        title = in.readString();
        introduce = in.readString();
        grade = in.readString();
        type_id = in.readInt();
        cup_name = in.readString();
        video_describe = in.readString();
        ucloud_video_url = in.readString();
        ucloud_video_pic = in.readString();
        is_learn = in.readInt();
        is_good = in.readInt();
        study_num = in.readInt();
        course_num = in.readInt();
        join_my_course = in.readInt();
    }

    public static final Creator<CupListResult> CREATOR = new Creator<CupListResult>() {
        @Override
        public CupListResult createFromParcel(Parcel in) {
            return new CupListResult(in);
        }

        @Override
        public CupListResult[] newArray(int size) {
            return new CupListResult[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public String getCup_name() {
        return cup_name;
    }

    public void setCup_name(String cup_name) {
        this.cup_name = cup_name;
    }

    public String getVideo_describe() {
        return video_describe;
    }

    public void setVideo_describe(String video_describe) {
        this.video_describe = video_describe;
    }

    public String getUcloud_video_url() {
        return ucloud_video_url;
    }

    public void setUcloud_video_url(String ucloud_video_url) {
        this.ucloud_video_url = ucloud_video_url;
    }

    public String getUcloud_video_pic() {
        return ucloud_video_pic;
    }

    public void setUcloud_video_pic(String ucloud_video_pic) {
        this.ucloud_video_pic = ucloud_video_pic;
    }

    public int getIs_learn() {
        return is_learn;
    }

    public void setIs_learn(int is_learn) {
        this.is_learn = is_learn;
    }

    public int getIs_good() {
        return is_good;
    }

    public void setIs_good(int is_good) {
        this.is_good = is_good;
    }

    public int getStudy_num() {
        return study_num;
    }

    public void setStudy_num(int study_num) {
        this.study_num = study_num;
    }

    public int getCourse_num() {
        return course_num;
    }

    public void setCourse_num(int course_num) {
        this.course_num = course_num;
    }

    public int getJoin_my_course() {
        return join_my_course;
    }

    public void setJoin_my_course(int join_my_course) {
        this.join_my_course = join_my_course;
    }

    public List<VideoBean> getVideo() {
        return video;
    }

    public void setVideo(List<VideoBean> video) {
        this.video = video;
    }

    public List<VideoMessageBean> getVideo_message() {
        return video_message;
    }

    public void setVideo_message(List<VideoMessageBean> video_message) {
        this.video_message = video_message;
    }

    public List<ExamineListBean> getExamine_list() {
        return examine_list;
    }

    public void setExamine_list(List<ExamineListBean> examine_list) {
        this.examine_list = examine_list;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(title);
        dest.writeString(introduce);
        dest.writeString(grade);
        dest.writeInt(type_id);
        dest.writeString(cup_name);
        dest.writeString(video_describe);
        dest.writeString(ucloud_video_url);
        dest.writeString(ucloud_video_pic);
        dest.writeInt(is_learn);
        dest.writeInt(is_good);
        dest.writeInt(study_num);
        dest.writeInt(course_num);
        dest.writeInt(join_my_course);
    }

    public static class VideoBean implements Parcelable {
        /**
         * id : 4238
         * video_title : 1
         * video_describe : <p>【1】下面一共有（ &nbsp;）个小方块</p><p><img src="http://7xu137.com1.z0.glb.clouddn.com/ueditor_20180507_5aef278580498.png" title="blob.png" alt="blob.png"/></p>
         * video_url : sxc_152562258591.mp4
         * video_pic : sxc_152562258591.jpg
         * is_learn : 1
         */

        private int id;
        private String video_title;
        private String video_describe;
        private String video_url;
        private String video_pic;
        private int is_learn;

        protected VideoBean(Parcel in) {
            id = in.readInt();
            video_title = in.readString();
            video_describe = in.readString();
            video_url = in.readString();
            video_pic = in.readString();
            is_learn = in.readInt();
        }

        public static final Creator<VideoBean> CREATOR = new Creator<VideoBean>() {
            @Override
            public VideoBean createFromParcel(Parcel in) {
                return new VideoBean(in);
            }

            @Override
            public VideoBean[] newArray(int size) {
                return new VideoBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getVideo_title() {
            return video_title;
        }

        public void setVideo_title(String video_title) {
            this.video_title = video_title;
        }

        public String getVideo_describe() {
            return video_describe;
        }

        public void setVideo_describe(String video_describe) {
            this.video_describe = video_describe;
        }

        public String getVideo_url() {
            return video_url;
        }

        public void setVideo_url(String video_url) {
            this.video_url = video_url;
        }

        public String getVideo_pic() {
            return video_pic;
        }

        public void setVideo_pic(String video_pic) {
            this.video_pic = video_pic;
        }

        public int getIs_learn() {
            return is_learn;
        }

        public void setIs_learn(int is_learn) {
            this.is_learn = is_learn;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(video_title);
            dest.writeString(video_describe);
            dest.writeString(video_url);
            dest.writeString(video_pic);
            dest.writeInt(is_learn);
        }
    }

    public static class VideoMessageBean implements Parcelable {
        /**
         * members_id : 3176
         * content : 老师，杯赛在哪做？
         * posttime : 1533216305
         * answer_posttime : 1533262778
         * answer_content : 在【在线考试】那边
         * status : 2
         * username : 美若黎明
         * avatar : http://api.niuwaketang.com/avatar/avatar.png
         * answer_teacher_nicename : 牛娃老师
         * answer_teacher_avatar : http://api.niuwaketang.com/avatar/teacher_avatar.png
         */

        private int members_id;
        private String content;
        private int posttime;
        private int answer_posttime;
        private String answer_content;
        private int status;
        private String username;
        private String avatar;
        private String answer_teacher_nicename;
        private String answer_teacher_avatar;

        protected VideoMessageBean(Parcel in) {
            members_id = in.readInt();
            content = in.readString();
            posttime = in.readInt();
            answer_posttime = in.readInt();
            answer_content = in.readString();
            status = in.readInt();
            username = in.readString();
            avatar = in.readString();
            answer_teacher_nicename = in.readString();
            answer_teacher_avatar = in.readString();
        }

        public static final Creator<VideoMessageBean> CREATOR = new Creator<VideoMessageBean>() {
            @Override
            public VideoMessageBean createFromParcel(Parcel in) {
                return new VideoMessageBean(in);
            }

            @Override
            public VideoMessageBean[] newArray(int size) {
                return new VideoMessageBean[size];
            }
        };

        public int getMembers_id() {
            return members_id;
        }

        public void setMembers_id(int members_id) {
            this.members_id = members_id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getPosttime() {
            return posttime;
        }

        public void setPosttime(int posttime) {
            this.posttime = posttime;
        }

        public int getAnswer_posttime() {
            return answer_posttime;
        }

        public void setAnswer_posttime(int answer_posttime) {
            this.answer_posttime = answer_posttime;
        }

        public String getAnswer_content() {
            return answer_content;
        }

        public void setAnswer_content(String answer_content) {
            this.answer_content = answer_content;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getAnswer_teacher_nicename() {
            return answer_teacher_nicename;
        }

        public void setAnswer_teacher_nicename(String answer_teacher_nicename) {
            this.answer_teacher_nicename = answer_teacher_nicename;
        }

        public String getAnswer_teacher_avatar() {
            return answer_teacher_avatar;
        }

        public void setAnswer_teacher_avatar(String answer_teacher_avatar) {
            this.answer_teacher_avatar = answer_teacher_avatar;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(members_id);
            dest.writeString(content);
            dest.writeInt(posttime);
            dest.writeInt(answer_posttime);
            dest.writeString(answer_content);
            dest.writeInt(status);
            dest.writeString(username);
            dest.writeString(avatar);
            dest.writeString(answer_teacher_nicename);
            dest.writeString(answer_teacher_avatar);
        }
    }

    public static class ExamineListBean implements Parcelable {
        /**
         * id : 295
         * ex_title : 2017年第26届一年级数学大王邀请赛真题
         */

        private int id;
        private String ex_title;

        protected ExamineListBean(Parcel in) {
            id = in.readInt();
            ex_title = in.readString();
        }

        public static final Creator<ExamineListBean> CREATOR = new Creator<ExamineListBean>() {
            @Override
            public ExamineListBean createFromParcel(Parcel in) {
                return new ExamineListBean(in);
            }

            @Override
            public ExamineListBean[] newArray(int size) {
                return new ExamineListBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getEx_title() {
            return ex_title;
        }

        public void setEx_title(String ex_title) {
            this.ex_title = ex_title;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(ex_title);
        }
    }
}
